
/** 
*Copyright 2018 Yonyou Corporation Ltd. All Rights Reserved.
* This software is published under the terms of the Yonyou Software
* License version 1.0, a copy of which has been included with this
* distribution in the LICENSE.txt file.
*
* @Project Name : dmscloud.basedata.common
*
* @File name : BaseDataCommonConstants.java
*
* @Author : Lius
*
* @Date : 2018年8月29日
*
----------------------------------------------------------------------------------
*     Date       Who       Version     Comments
* 1. 2018年8月29日    Lius    1.0
*
*
*
*
----------------------------------------------------------------------------------
*/

package com.yonyou.cyxdms.sysmanage.client.constants;

/**
 * CommonConstants
 * 
 * @author Lius
 * @date 2018年8月29日
 */

public class BaseDataCommonConstants {

    private BaseDataCommonConstants() {}

    public static final String BRAND_CACHE_BRANDID = "cyxdms:basedata:brand:{0}";

    public static final String LOGIN_CACHE_USERID=  "cyxdms:sysAuth:user:{0}";

    public static final String LOGIN_CACHE_USER_TOKEN=  "cyxdms:sysAuth:usertoken:{0}";

    public static final String USER_CACHE_ROLE=  "cyxdms:sysAuth:role";

    public static final String USER_CACHE_USER_ROLE=  "cyxdms:sysAuth:userRole";

    public static final String USER_CACHE_USERID=  "cyxdms:sysManage:user";

    public static final String USER_CACHE_USERID_CMS=  "cmsdms:sysManage:user";

    public static final String EMPLOYEE_CACHE_EMPLOYEEID=  "cyxdms:sysManage:employee";

    public static final String VERSION_CACHE_TYPE=  "cyxdms:sysManage:version";

    public static final String USER_LOGIN=  "cyxdms:logger:login:{0}";
    //CMS-缓存组织信息
    public static final String ORG_CACHE_ORGID=  "cyxdms:sysManage:org";

    public static final String DMS_USER_TOKEN_CACHE_PREFIX=  "DMS:USER:TOKEN:CACHE:{0}";

    public static final String DMS_USER_CURRNT_TOKEN_CACHE=  "DMS:USER:CURRENT:TOKEN:{0}";

    public static final Long USER_LOGIN_MIN = 1000 * 60 * 5L;

    public static final Long EXPIRE_TIME_ONE_DAY = 1000 * 60 * 60 * 24L;

    public static final Long EXPIRE_TIME_ONE_HOUR = 1000 * 60 * 60L;

    public static final String APP_ID = "cyx";
    public static final String ISJL = "ISJL";
    public static final String CWBJRKRY = "CWBJRKRY";
    public static final String XSGLBJRGLY = "XSGLBJRGLY";
    // 子系统jwt缓存：apppId-->hset userId
    public static final String SUB_JWT = "cyxdms:sysManage:subjwt:{0}:{1}";

    //系统菜单到URL对应关系缓存
    public static final String MENU_URL_ACTION_CACHE = "cyxdms:sysManage:menuActionUrl:{0}";
    //系统用户职位与菜单对应关系缓存
    public static final String USER_MENU_CACHE = "cyxdms:sysManage:userMenuId:{0}";
}
